#include<iostream>
#include<string>
using namespace std;
int main()
{
	string str[]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
	string num;
	cin>>num;
	int i=0;
	if(num[0]=='-')
	{
		cout<<"fu"<<' ';
		i=1;
	}
	for(;i<num.length();i++)
	{
		if(num.length()-1!=i)
		cout<<str[num[i]-'0']<<' ';
		else 
		cout<<str[num[i]-'0'];
	}
	return 0;
}
